package org.example.enums;

import cn.hutool.core.convert.Convert;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;


@Getter
public enum RolePriceLimit implements Describable {
    HOME_PROCUREMENT(1, "屏蔽首页采购价"),
    HOME_RETAIL(2, "屏蔽首页零售价"),
    HOME_SALE(3, "屏蔽首页销售价"),
    DOCUMENTS_PROCUREMENT(4, "屏蔽单据采购价"),
    DOCUMENTS_RETAIL(5, "屏蔽单据零售价"),
    DOCUMENTS_SALE(6, "屏蔽单据销售价"),
    ;
    
    @EnumValue
    private final int value;
    @JsonValue
    private final String desc;
    
    RolePriceLimit(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }
    
    
    @Override
    public int getValue() {
        return this.value;
    }
    
    @Override
    public String getDesc() {
        return this.desc;
    }
}
